package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.Function;

import java.util.List;

import vn.edu.ptithcm.pim.dao.FunctionDao;
@SuppressWarnings({ "rawtypes" })
public class FunctionService {
	private FunctionDao functionDao;

	public FunctionDao getFunctionDao() {
		return functionDao;
	}

	public void setFunctionDao(FunctionDao functionDao) {
		this.functionDao = functionDao;
	}

	public void save(Function function) {
		functionDao.save(function);
	}

	public void saveOrUpdate(Function function) {
		functionDao.saveOrUpdate(function);
	}

	public void lock(Function function) {
		functionDao.lock(function);
	}

	public void delete(Function function) {
		functionDao.delete(function);
	}

	public Function merge(Function function) {
		return functionDao.merge(function);
	}

	public Function findById(java.lang.Long id) {
		return functionDao.findById(id);
	}

	public List findByExample(Function function) {
		return functionDao.findByExample(function);
	}

	public List getAll() {
		return functionDao.getAll();
	}
}
